import request from '@/utils/request'

// 商户每日报表
export function getMerchantDaily(params: any) {
  return request({
    url: '/v1/report/getMerchantDailyReport',
    method: 'get',
    params: params
  })
}
// 商户每日-详情
export function getMerchantDailyDetails(params: any) {
  return request({
    url: '/v1/report/getMerchantDailyGameReport',
    method: 'get',
    params: params
  })
}

// 商户每日-汇总
export function getMerchantDailySum(params: any) {
  return request({
    url: '/v1/report/getMerchantSum',
    method: 'get',
    params: params
  })
}

// 商户历史记录
export function getMerchantHistory(params: any) {
  return request({
    url: '/v1/report/getAgentHistoryReport',
    method: 'get',
    params: params
  })
}
// 商户历史-详情
export function getMerchantHistoryDetails(params: any) {
  return request({
    url: '/v1/report/getAgentHistoryReportDetail',
    method: 'get',
    params: params
  })
}

// 游戏输赢
export function getGameWin(params: any) {
  return request({
    url: '/v1/admin/report/roomWinLose',
    method: 'get',
    params: params
  })
}

// 游戏输赢-高倍返奖详情
export function getGameWinDetails(params: any) {
  return request({
    url: '/v1/admin/report/getBonusMultipleDetails',
    method: 'get',
    params: params
  })
}

// 游戏输赢-投注详情
export function getGearDetails(params: any) {
  return request({
    url: '/v1/report/getRoomWinLoseGear',
    method: 'get',
    params: params
  })
}

// 游戏排行
export function getRankList(params: any) {
  return request({
    url: '/v1/admin/report/playerRankList',
    method: 'get',
    params: params
  })
}

// 投注留存
export function getAgentRemainList(params: any) {
  return request({
    url: '/v1/admin/report/retentionAgentListNew',
    method: 'get',
    params: params
  })
}

// 投注留存 - 商户投注留存列表
export function getRemainList(params: any) {
  return request({
    url: '/v1/admin/report/retentionAgentGameList',
    method: 'get',
    params: params
  })
}

// 商户-首次投注留存
export function getFirstRemainAgentList(params: any) {
  return request({
    url: '/v1/report/firstBetRetentionAgentList',
    method: 'get',
    params: params
  })
}

// 游戏-首次投注留存
export function getFirstRemainList(params: any) {
  return request({
    url: '/v1/report/firstBetRetentionList',
    method: 'get',
    params: params
  })
}

// 下注次数统计
export function getBetCount(data: any) {
  return request({
    url: '/v1/game/getUserBetCountReport',
    method: 'post',
    data: data
  })
}

// 转账钱包汇总-记录
export function getTransferRecord(params: any) {
  return request({
    url: '/v1/game/transferRecordTotalReport',
    method: 'get',
    params: params
  })
}
// 转账钱包汇总-详情
export function getTransferRecordDetails(params: any) {
  return request({
    url: '/v1/game/transferRecordTotalDetail',
    method: 'get',
    params: params
  })
}
// 转账钱包汇总-获取转账钱包总代
export function getTransferOperated(params: any) {
  return request({
    url: '/v1/admin/system/allTransferOperatorList',
    method: 'get',
    params: params
  })
}
// 转账钱包汇总-获取转账钱包商户
export function getTransferAgent(params: any) {
  return request({
    url: '/v1/admin/system/allTransferAgentList',
    method: 'get',
    params: params
  })
}